/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package Model.pojo;

public class Compra {
	private long codigo;
	private double preco;
	private Pedido previa; //relacionamento das classes
	
	// Construtor
	public Compra(long codigo, double preco) {
		this.codigo = codigo;
		this.preco = preco;
	}
	
	// Get e Set
	public long getCodigo() {
		return codigo;
	}
	public void setCodigo(long codigo) {
		this.codigo = codigo;
	}
	public double getPreco(){
		return preco;
	}
	public void setPreco(double preco){
		this.preco = preco;
	}
}
